package com.qianfeng.smartdevice.controller;

import com.qianfeng.smartdevice.dto.R;
import com.qianfeng.smartdevice.service.HumitureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by wenka on 2022/3/28 22:53
 *
 * @author wenkaixin
 * @version 1.0
 * @since 1.0
 */
@RestController
@RequestMapping("/humitures")
public class HumitureController {
    private HumitureService humitureService;

    @Autowired
    public void setHumitureService(HumitureService humitureService) {
        this.humitureService = humitureService;
    }
    @GetMapping("/humitures")
    public R getOneHourDate(){
        return R.setOK(humitureService.findOneHourDate());
    }
}
